cusum script now takes input filename as commandline argument; cusum procedure is now in one subroutine called by main