Added getopt, and changed the default to dev