bunch of code cleanup, exception handlers for catching key errors, etc

version 1.1.0.0 ready for testing!