made script more efficient now that all subjects have been tested
function now also calculates an average (% correct answers) for each subject and the entire group (mean and SD)