Starting to Clean code up in line with chosen Style

Wish to use the PEAR standard