added comments and standardized formats