copied to python scripts, worked on the loop, included analysis modules, works fine, comments needed
removed old files, files now in python scripts