Using a cumulative distribution for rand item sampler.
Small refactoring and tidying.
Updated readme