Added draft of thesis. Feedback welcomed!