cleanups and check windows. ensure sync. 

It works on windows but testing with 2D version needs to be ceased; the 3D one is much worse behaved and does not seem to conform to user edits. Also energy3c.cpp contains a weird casting  issue, is rad[ ] really supposed to be passed as an int?