added scripts to general produce cost plots