Added Error Reporting feature.

Fixed typos.
Merge pull request #9 from vidhant/error

Added Error Reporting feature.