the screen you are describing is fastboot. the prior command(
adb reboot bootloader) is the one that takes you there. from your description,it sounds like you entered
fastboot devices prior to the phone actually being in fastboot(it sometimes takes a minute or 2). the next command failed and hung at 'waiting for device' becasue you rebooted back to the OS,but it needed to be entered in the fastboot screen as well,as do all the commands after it.
you can either:
1)start again at the
adb reboot bootloader command,amd this time wait for fastboot to load before you enter the next commands.
or
2)manually put your phone in fastboot by booting to hboot,then select fastboot from the hboot menu. pick up the commands at
fastboot devices
hopefully that should get you thru the rest of it.