Tidied output values and added comments.