attempt.php refactor.  * Move all output code to the end.  * Make comment style consistent.  * Trim trailing whitespace from lines.
attempt.php refactor.
 * Move all output code to the end.
 * Make comment style consistent.
 * Trim trailing whitespace from lines.

dilawar/moodle