Clarify tree structure with single root in doc.go. Add write_test.go to demonstrate object creation.