Simple mouse events, gui class rebuilt.
Some minor changes.