added comments and formatted