Added different handling for errors and warnings.
Merge pull request #4 from Matthias247/nimcheck

Added different handling for errors and warnings.