Fixes to do.php about questions and generation of idxfile.php