adding in constructor so file root and web root can be set on initialisation
Merge pull request #1 from MikeRogers0/master

Adding in constructor and some PHPDoc bits.