Updated example gui.
Fixed bugs.