Added pass-fail option to narrative printing and editing for students
with pass-fail option selected in their user profile.
Allowed ajax.php controller to be used without authentication

Authentication adds overhead not needed for simple script that provides
no access to database. Ajax.php is just for unified processing of
certain values in the system so ajax uses the same algorithms as the
php server-side processes do.
refactoring code--adding PHPdoc comments.