Dilation and effacement

My doctor told me on Friday that I have 0 dilation and am 40% effaced. What does this mean? It was the first time he checked me for that and he was a bit rough. I had a few cramps throughout the day that went away yesterday.