added command to list available images
some cleanup
add option to flash any image version