Wrote documentation for some methods