Updated the Makefile
Added memory checking function