Added documentation in comments