fixed category and attribute impls
Merge pull request #8 from chasesp/master

fixed category and attribute impls