Completed the GUI functionality and reworked some bugs and the sorter.