* Added a conditional directive to prevent index from doubling in LaTeX PDF output. * Wrote a complex and fixed foreword.