added proper Error calculation to tools.calculateDispersion
changed some units