add some comments about options used. Script exits with failure if a command fails