This repository contains my PhD thesis.