modified to receive external content

1. startExperiment now received pretest and training questions as an
argument instead of having them built in.
2. index.php call to startExperiment modified accordingly
3. startExperiment also reorganized to make it more understandable