exercise.class: Report invalid course IDs

Throw an expection when the given construction parameter is not a valid
course ID.
exercise.class: Explain the delete method
Merge pull request #100 from diegoe/exercise_fixes

Exercise fixes