Simplified distribution generation code to no longer need cond
commented out print statements