Fixed spelling error. Fixed setting of loglevel.