Here is the definitive how-to it is pretty satisfying and you will know everything you need to know about them when done.
http://www.stovebolt.com/techtips/doors/hinges/index.html
Another tip you might want to try is where the hinge body goes back into the door frame I roto filed that opening a little larger. Much easier going back in and will prevent scraping your new paint off eventually.