Removed old debugging code.
Added unit tests and fix for issue #3 in github, not correctly handling float q
values without a preceeding 0 correctly.