Add checking of sum of probabilities

Closes #2
Add calc by column while loop excluding

Closes #1