Modified diff to multiply
Modeified sum to divide
Merge branch 'bernEdit'
Corrected diff() in master
sum() and diff() are now switched on bernEdit
Resolved merg conflicts