Add documentation

Assumes changes to $ref yet to be tested and committed

Closes #1
modify fn signature of model.$ref
Update tests for modified $ref fn signature
Use ref.toString in docs to generate absolute paths