Added Makefile and freeVM()

Added freeVM(), which fixes memory leak.

Added Makefile for convenience of building executable and testing for leaks. To run the test, simply type
make run