Added chapter 2 and glossary. Some minor changes in other chapters.