64bit 32bit types

Changes some leftovers of using floats to using CGFloats. Plays nicer with conversions in 64 bit.