Created protected getters instead of protected variables. Fixes #26

Fixes #26 . Made getters protected instead of their respective variables having to be just that.