Finished version to process single file input, need to code directory input