Added documentation to various methods