Update cwf.sh

Added necessary functions for the restore script cwr.sh and fixed a small typo