Add better info about what the loose_ssh script is for
Refactor and implement tests