update new flag
change correct ration algorithm to math.round()
Merge remote-tracking branch 'upstream/master'