added planck distribution
working mj dist