adding in function to work with file handler, abstract out commonalities
Merge pull request #1 from jacobemerick/master

adding in function to work with file handler, abstract out commonalities