exported expandDoubleVerts and added example to Rd