Implemented correct logging of all important errormessages through
ErrorLogger
Small bugfixes