updated comments and syntax