Added buttons to clear window and exit

* Clear button functional
* Exit button has a bug (not really exiting)
* Exit button is not at the right place

To be tested with a Wacom tablet...