More documentation and comments.