rm -f
parameterize the test path
print hint after make test
code cleanup
added getopt, code cleanup