Add the option to save the file

It may save base and book clippings.
Remove empty lines.