Error messages handling
throwing InvalidArgumentsError for input validations
changed error format
Merge pull request #3 from DiyaKhan/master

Error Handling