added documentation for code review