Disabled DirectoryIterator, protected vars and public constructor, added debugging functions and hooks