added getCategories w/ test and docs