improved intergravity.cpp and made project 100% portable