Adding in constructor and some PHPDoc bits.

Adding in a constructor who lets web root and file root be set when the class in called.