Add comment explaining use of SREG to restore interrupt status. Fix return type