fixed a couple bugs, added logic for ISR, just need to figure out how to read pin value