general: Consistent documentation and logging.
tunnel: Fix bugs.