Added method to find categories by id or name. (per Brian's request)
Fixed compile problem after adding method.