improve docs, make helper methods private in ssh, fix tests