added a data collcetion method and some LED testing code