committing version with better data input.. Now it can load multiple files but the gui doesn't get corrected