Move instance attributes to constructor definition
Merge pull request #23 from burlesona/reference_fix

Move instance attributes to constructor definition