Fix #52; add ability to introspect attributes

This is not a clean solution. This commit should be considered a spike.