Added prevention for cheating and some minor housekeeping.