GUI almost complete. Improve the backend functionality. Fix bugs.