Code reviewing after comment on github for exercise.lib.php and lp_controller.php