some minor refactoring

refactored some some files and changed some ints to floats as they
should be. (mostly actual numbers like 5, 0, 1.2 etc.)
Also did some summary commenting