cleaned up code
added script for midway report graph
re-organized files a little