Break out env and status in to separate commands
Tidy up the boot process
Noob bitwise logic error
Fix macros for extracting info from status bits