Code cleanup + new features

I cleaned up the code, separated the "god object" main page into many controls, and fixed issues #1 and #2 . Yay for open source! (and free time, too...lots of it)