Added log messages for some exceptions, removed "_ <- " for unused do bindings. Had some indentention errors, so lots of lines will show changes