Wrote documentation for some important methods.