added average score functions; tested html