added functionality for outputting multiple files as a single classification file containing 2D JSON array