Fix output.
Make this script executable.
Add license information.