Some minor formatting and added comments.