fixed terrible cleanup bug
added prelminary led status light control