Nearly there again
As I should have expected, a completely new code that wasn't tested at all will not work on the first try. I am still working on some bugs of the code. Hopefully I will finish tomorrow, but considering my recent track record on predicting the end of my work, it might not be the case.