detailed function comments only in .h file
improved handling for list of telnet commands