Changed device removal detection to use POLLHUP
Last attempt to make the old ADC work
Further testing; beginning of final code