added psudo code for the four options when flushing the buffer
cleaned up the interrupt function for future modification
added the code for turning on an led in the list
finished untested version of the new flush buffer method
confirmed that the new interrupt funtion is working