Address points raised by shellcheck.
Added parameters to the test file.
Added sanity checks and improved the program's output.
You can also use your local clone with git send-email.