changed structure of program
changed structure of program
stuff kind of works
ready for editing