Added documentation to the methods