Added version attr to model. Fixes #2