Added getter/setters.

[close #514]

Signed-off-by: Grant Skinner <info@gskinner.com>