Ends of Groups and the Associated First Cohomology Groups