Add relative option with test and docs

Here's the changes again after rebasing upstream