changed the graphics programm to allow for larger data files, changed average-script to do the same thing