Understanding and negotiating a publishing deal