add category centric processing. fixes #230
minor fixes for #230
fix multiple typos #230
Merge branch 'dev-cat' into dev