added .gitignore for mac
add Makefile, move to source-based impl