Added plotting functions, script, fixes in runfiles