added thinning to multichain functions
added thinning to multichain functions
Merge pull request #11 from clandere/master

some changes in the multichain functions