Add the addline action

Closes #7.