improvements on the distribute script
Merge branch 'develop' into feature-move-head-position