Updated docs and comments.