Fixed autossh bugs and updated examples