adjusted the physical constants to suit the application
deleted useless includes and removed the need of global vars