Fixed the distribution function. Still need to fix the write up.