Extended the json format with better section information, and outer structure. Version bumped to 0.9
Fix oops, forgotten update of by-category for the new helper procedures.