clean up pty process wrapper, document, and include (crudely) in adaptor documentation