whitespace cleanup
add license file
use a proper Makefile