Added getopt, addedd dryrun