added toc, written missing sections, refinements and restructuring