Support sub-doc updates

It's much better documented now.