User blog comment:B1mb0w/J Function Sandpit J 3/@comment-25601061-20151018193337/@comment-10262436-20151019132021

Thanks. I have a greatly simplified version of the code and I should be able to upload it tomorrow. There are still some bugs but it will be easier to follow and I will provide some pseudo-code explanations as well.