Added more debug printfs.
Restricted floating point numbers within a working range.