Finish PEAR compliance

Documentation is still TODO
TODO write concatination concistantly (' . ' vs ' .')