Attach and Detach commands

Based on contributions in #46 
might as well name this 'attach'