Category hierarchy created and processing correctly. Need to figure out how to write out categories.