Added documentation to methods.