MDL-43089 Fix a lot of PHPdoc issues.
MDL-43089 fix failing unit test.
MDL-43089, adding number of random questions
MDL-43089, removed adding random questions from question bank
MDL-43089 improve some variable names.
MDL-43089 Update total marks when a question mark changes.