Refactored led controller code and fixed some bugs