* Tidied-up code for modern autoconf/automake/C99 compiler.

        * Fixed apparent very old bug involving use of close instead of fclose.

        * Updated copyright notices to 2014.