Issues corrected V0.2

Stopped bodies detection
Some global varibles cleaning (still very, very, embarassing code)