refactored autoUnit
Merge pull request #229 from jrenner/master

refactored autoUnit, added no_float parameter (clean commit log)