Minor edits and added comments.