Add documentation and test about parent/child

Closes #51.