added comments and made all lower case