Reworked the GUI a bit and started implementing saving