modified file to load data from GUI

still need function to analyze data