implemented higher order corrections
first version of a new algorithm to determine masses