Main GUI
Fixed some bugs (see updated bug list)