Implemented the call to change the led state in the api. Closes #4