Added some very basic input checks.
Removed duplicate utility functions I forgot to remove.
Merge pull request #7 from GilbertLS/master

Added some very basic input checks. Removed Duplicate utilities