Add docs for `getRelation` and `toJSON`
Link fixing, change wording in some places.