Added a bunch of comments.