cleaned up error handling of different loglevels
Merge pull request #16 from Yantrio/toLowerErrorHandling

cleaned up error handling of different loglevels