minor updating

creating gui
code optimization
fixes