Started to create OOPHP based construction

This should make the variables make a lot more sense.