Simplify use of attr_accessor

Removing some metaprogramming that can be done much more simply.
Merge pull request #258 from JackDanger/simpler-attr_accessor

Simplify use of attr_accessor