Fixed a little error and added comments.