Added documentation to some methods