Minor changes, added comments.