lint
sigh...
Don't need curses everywhere.
Fixed the crazy bug. Also fixed exception handling.