This is the version control of Kun's PhD thesis