Fixed the --dryrun and --startat command line options.
Minor code reformatting.