Working call to functions from GUI. Lots of scanner and file i/O commented out at this stage