added unhandled exception logging
also cleaned up usings and class documentation