parameterise distributions
Merge branch 'master' into gh-pages