Correct final script file
bugfix
 0-strings were accepted + division by zero fix