makefile for putting up a binary
fixing a null pointer bug