Got the category processing kind of working. Code has been commented with wit and self effacing sincerity.