Add GUI functionality, and fixed some things in character