Fixing issue 706 with body classes

Still a bit to do here

- [ ] get the body classes working properly on tag/cat archive pages
- [ ] code clean up to match current WP standards
- [ ] expand docblock to be complete

Is the formatting/clean up worth it while I'm here?

Intended to fix #706