Sigil is an editor for epub books.
You can also edit them using a plain old text editor (which is my personal preference.) You first have to unzip the ebook file to reveal the various html, css and configuration files, and after the changes you have to zip it up again.