added FSM library and integration into arduino sketch, still buggy.. need to add logs again and ignore them in lightcontroller!