more progress on writeup, still need to combine algos