set -o pipefail added
script for extimating fmesaure added
incorrect encoding specification fixed