Added documentation and in-line comments.
Added documentation and in-line comments.