Refactoring the code.
Removed stuff that was allready commented out.
Stil need to think for a better name for 1.pl
This looks fine for now. Can go on tommorow.