To merge nearest vertices, choose vertex tab, Merge -> Range: Automatic. This will remove all duplicate (on top of each other) vertices.