Changed some of the init, needs some debuggin on the init as it gives
wrong float values