Document the code, minor refactoring.
Compile production version.