added gui
reformatting
new processing model