Added documentation to methods