Added Error Reporting feature.

Fixed typos.