Cleaned up the code.

Converted a few more comments to english.
Removed the dependecy on glos.h
Now the calculations are done with floats.