Add frontmatter and restructure thesis packages