adding support for command line usage; adding logging to report progress