UI mostly finished

Implemented graphical UI.