Added getter method for class properties.
Added getter methods for class properties and added comments.