Add options parameter to function FlashDevice2 and remove unused function FlashDevice. Flash options are now visible at the top of the function tree instead of being buried inside function FlashDevice2.