added powerOff command to sample