led example added, bug fixes