use cattr_accessor and make accessor private.
Merge pull request #6 from esminc/fix_uninitialize_roles

use cattr_accessor and make accessor private.