Rewrote the "handling subdocuments" section