Add function to show errors and information.

Just like gmail does
fix typeof typo
Removed Extra bracket
Merge pull request #52 from GeneralZero/patch-3

Add function to show errors and information.