implement analog input handling; implement command line debug output for analog input