fixed Makefile and runscript
added test script