Made updates to handle processing a file or a directory.  Does not go into sub-directories.