turned class variables into constants

* Added documentation