replaced Li and Leal calculation with explicit chi^2
Documented correction
Merge branches 'dev' and 'master'