added some stuff to the test program
added debug messages to the gui functions