script now calculates summary and graph, still needs more commenting