refactor printf to puts and correctly zero-out array
add makefile