Make accessors code work for multiple attributes
Merge pull request #15 from pjc/attributes

Support multiple attributes for accessors