Some minor things:   - Clean filename.   - Applied format_string to choice->name and answers.   - Better parameter handling. Remaining:   - A lot of notices in line 148, breaking output with debug enabled!
Some minor things:
  - Clean filename.
  - Applied format_string to choice->name and answers.
  - Better parameter handling.
Remaining:
  - A lot of notices in line 148, breaking output with debug enabled!

dilawar/moodle