Removed comments and updated docstring.
Clarified some comments.