Added logic to display errors and warnings
Merge pull request #121 from prabinv/master

Added logic to display errors and warnings