Fixed gradebook.js to handle chapter names with spaces, added documentation for DEBUG_MODE