added in a few lines of code s.t. alignment counts accumulate correctly, even when there is no null word appended (in training)