Added documentation in the form of comments