Audited code

Improved all of the catch statements to actually do something when an
exception is caught.

Removed unnecessary imports.