Source code for 'hierarchical reverberation mapping'