Everything works,perhaps look at improving later on.
This is the main. Will probably rename it later. Everything works for now. Still need to put the rest of the subs in seperate .pm files.