Clean up codebase. Wrote protection script to be run in maven validate phase which should help us reduce the XXX and TODO. Wrote documentation for format module.