phd thesis source code