I apologise that the link given in that paper is no longer active. I still get requests for this code, so I thought I'd make it available here. I’m surprised no one else has made open-source code ...