Update documentation

Got to maintain documenting code, especially for a huge codebase