adding in constructor so file root and web root can be set on initialisation