inFile names cleaned up
Resolved conflicts
automatically generate file names and legend from parameters for easier modification