blah commit
added script to test
 added makefile for easy
added error checking
cleaned up and removed test prints
added arguments