Partitioned Functions to make more modular and added support for analyzing multiple files of data