Adding more error checks
Merge pull request #3 from salilpa/working

Adding more error checks