updating a lot of the optional filter parameters and fixing the creation of the stats array in generate ensemble statistics