Add periodical support
Fix a bug that makes the main page included in some books
Add a protection to cut filenames if they are too longs.