Modified generateForDir() to include a file callback

Modified generateForDir() to include a file callback that is fired each time a file is parsed successfully; this surfaces parsed file attributes to the caller to facilitate additional parse-time functionality