Modified Makefile to add the ability to create tests and moved default variables and rules to seperate makefiles