Create accessors for class variables

Fixes #21.