front page module code cleanup and comments