Break led_control into a library and command line interface