changed to let user specify chain number when in serial
Merge branch 'master' of github.com:tlamadon/mopt