Minor style changes and added comments.