All source code written for dissertation.