quick adjustment to assume a file if not provided.
Added strategy to get the problem done. See comment at beginning of file.