Introduced precision module

...and other minor changes.
Added test file in root, but won't vc it