Mulitple items changed

Added maximum time period calculation
Added histogram of  simulated data
+ multiple minor changes