Work on both counter and button readers

counter not working
buttons in early stages