Merge pull request #1 from aalpar/trim

merged a bunch of rough code ... more work coming.
Merge branch 'master' of github.com:aalpar/smalltools into trim
Merge branch 'trim' of github.com:aalpar/smalltools into trim
start of units revamp.