More GUI code. added simple gui starting code to main.