Cleaning up the files. Removing all functions and modules that are unnecessary in gui version