rename files.
add license headers and update README.
change target names, use -std=c99