Here’s a very brief overview about book contracts.
One thing to keep in mind when reviewing your contract is when the book is considered out of print. Make sure that you are able to produce ebooks (or even printed books) within a reasonable amount of time after the printed version is no longer available. If publishers retain all the rights through the creation of an ebook version, you can be hung up forever waiting on their publicity department to do anything.