adding hist; plotting pmf directly
fixing plotting