Documented code, fixed some typos, updated generated documentation