Add loadDirectory to read in complete folders. See test.js for an example of working with the output.