Merge pull request #8 from rbart/reltype

Add type field to relation
Make DocSplitter an Object.