added parseInt, refactored with tests
matching exceptions to expectations for ParseInt. adding doc comments.