moved some code into own classes to make simpler

moved all file control code into FileControl Class
moved Install Code into Install Class
moved Gui Code into Gui Class