Insert missing levels of commentary

If there was a header for commentary "2(a)(1)", but no commentary for "2(a)", the comment would get lost. This adds in the missing levels of the tree to keep everything hunky dory. 

This also fixes a few bugs introduced in #141