added check for tome type
Merge pull request #37 from montaggroup/check-valid-tome-type

added check for tome type