Sure, I'll upload it here. I'll add some clarifying comments too. Apologies in advance for the spaghetti code.
oh, it is very very ok :)
thanks!