Added comments and formatting styles.