allow a small uncertainty for point in calcBorder
improve error message
Merge branch 'fix_issue_5' into develop
fix minor bugs & prepare for release