How does Membrane sweep work?

I want to go in for a membrane sweep  can you tell me what exactly they do and is it painful?