[mms-lib] Better type checking
Merge pull request #37 from monich/types

Better type checking