added contribution setting calls in the algorithm and the demo. Updated documentation and version