Serial version with some profiling
Added variability to mass distribution
Small changes in parameters