I will put code I have produced here. If you find it useful, please cite the relevant paper(s). If you want to improve or build on any of it, please feel free to do so.