work

More experiments and code on GitHub.