rounding issues

* convert ints to float before using them in a division
* round the result to eliminate very small numbers
fixing extensionPath for mechanic
Merge pull request #21 from typemytype/master

floats