Refactor unit conversion
Rename size constants
Fix some comments
Update example to use constants instead of strings
Merge branch 'release/0.5.0' into develop