Here is the chaste source code with some of my modifications.