Update the checkType Function
Documentation & test unit update
correcting the test units
Merge pull request #1 from IsmailM/master

Updating the CheckType function