added better file writing for later analysis
start of analysis files
Parsing of result files