cleaned up the inheritance of Model from Frame
added a GUI
draw routine