Code clean up and commenting.

I need to look spiffy for my first public repo! Still more work to be
done however.