WIP filteredFileArray returns in the wrong place
make it modular challenge solved
removed extraneous comments