rename source files, create a header file, fix includes
add Makefile, use -ansi and -pedantic