added heap and reduced size of makefile