Add reference command

Adds a command to add a reference.

@antgonza this helps to solve the issue in #732 
Can you use `click.echo`? Perhaps worth changing all the messages in the script too.