Update cwf.sh

Added functions for cwb.sh script and introduced timing of lengthy operations