added full version of PhD thesis