Go to Liz Castro's blog
and find her book _EPUB Straight to the Point. That will give you pointers to how to fix up what InDesign does. Also scan through her blog entries for updates for the newer versions of InDesign.
There is also lots of useful information in the MR wiki here.