Implement addcommand

Implements the "--add" command (which is not default by now) and thereby solves #8 .