set tol=inflate in placePatch and reordered arguments
revised code of checkLM and added docu and examples