To remove the navigation panel, comment the lines starting on 133:
// Arrange for the navigation to be displayed in the first region on the page. /* $navbc = $attemptobj->get_navigation_panel($output, 'quiz_attempt_nav_panel', $page); $regions = $PAGE->blocks->get_regions(); $PAGE->blocks->add_fake_block($navbc, reset($regions)); */