Added documentation to class methods.