Now html and json files can be written to a user-defined directory using outputPath.