Added error checks, command line options now handled by boost program options. Implemented progress bar option.