fixed bugs; generation of pupil report works