Code and docs for my final thesis