allow all object attributes, smaller cleanup
fix variable shadowing
set max version to 2.2.2
Merge pull request #40 from beanieboi/feature/refactor

allow all object attributes, smaller cleanup