updated comments and HTML formatting