add missing parens in replDecsScript.sml
initialise output to 0 in replDecsScript.sml
add copyright notice, license, and disclaimer