Add missing license header to rnc2rng.sh
Improve comments and formatting.
Use POSIX syntax for function declarations in rnc2rng.sh
for better compatibility with non-bash shells.