Added ransac margin as parameter. The parameter can now be changed in the ui.