Sigil might be something you will find useful.
click If you have your book in text file or html format you can easily import it into Sigil and create a working TOC file for it. I use the program all the time for fixing epubs from Project Gutenberg before uploading them here at MR.