Mostly documentation fixes, with some structured headers functionality added.