add test apps
add Makefile
fix defer
ignore binaries
add sample config file