modularized the --all option
modifed -c repair --student option to handle reverse testing