add makefile
some cleanup, work on wire connections