Finished applying new code formatting and documentation rules on main module.