replaced tabs by spaces
fixed doc generation logic
class for a discrete distribution; random wip;