added some basic tests, worked on gui.