Added type checking while parsing.
Refactored method names and added better logging in case of type mismatch.
Updated Podspec and README.md
Merge pull request #30 from marekcirkos/typeChecking

Added type checking while parsing.