ignore generated files
add makefile for tools dir
fix up warning in analyze-sockets

This will be removed when I add argument parsing tomorrow