print to stdout/stderr instead of using NSLog. Exit with error code on failure.
print an error message in case of no arguments
Add a simple test script and run it as part of build