Added remaining sections, bibliography and cleaned up LaTeX leftovers.