Add preface and table of contents, remove useless headings.