Turn on pedantic warnings; convert to c-style comments
Compile with -Wextra (extra warnings). Fix a harmless warning
Improve makefile, including "make valgrind"