Commands: Added the flash command.

I think the condition value at line 39 needs to have a condition to check if there is a device. Does such a condition exist?