Fixed bugs in the motor driving system; added Low Power Mode 0 for operation. Note: we will use low power mode 3 when using the external crystal.