Removed unnecessary comment and rearranged vars

Minus a few lines of "code".
Added comments copied from Go source, organizing.

Comments make the working of the algorithm clearer... I should have done this earlier. Because I also added some blank lines to organize the const declarations, this means more lines of code for us (and a lot more in gzipped file if coments are not extracted before XD).
Wrap around some comments and minor cosmetics
Fix TPt instantiation on spawnPts

Would cause a compiler error.
Moved most global variables to inside functions

Acess to them should be faster now, and many didn't had a reason to be on the top of the module anyway. Changed some proc parameters to add those variables.