use categories from configuration file
fix typo
Merge pull request #516 from elaird/categories

Tested ok