average() function to testprog.c for example.

Updated README.md.

Fixed the copyright dates in the two source files.