added comments for class methods and variables