Implemented a whitelist mode.
Implemented a 'rootDir' key.