TOL becomes 1e-3
fix #103
client-side uses the same comparison method as in backend
 fix #103
code indentation fixed
compilation fixed
see previous 3 commits
fix #102
Merge branch 'master' into release