add unit/data_type management, remove old bits
Merge pull request #45 from josqu4red/units

add unit/data_type management, remove old bits