Added comment headers to functions