script for stderr to file added
script for calc added