Some bugs have been fixed and a new led control function (m_led) has been implemented