fix ssh-hosts and document functions