The code that generated the numbers in my report is written in C and Perl and is available here as a tarball.