Added doc comments to methods