Code cleanup 1

Cleanup up and documented a lot of code, mostly in HandChecker.