Added documentation strings and comments.