Added defaults for :dev and :mode. Updated documentation to explain these options.