Fixed up a bunch of code, added hotkey support, and improved load file functionality.