Initial round of code cleanup

Removed a lot of extraneous crap, started commenting (issue #12)