Added rootPath option and reconfigured a typo