add Makefile
add .gitignore
reformatting; taking input from cmdline