Added ability to set the root directory at init in case $_SERVER['DOCUMENT_ROOT'] is problematical