update script for cortex peripheral and dependencies
 documentation and defensive escape for ssh