added test generation to makefile, cleaned up a couple errors, added a test that calculates pi

Done apart from making a readme