Foundation work.
WIP
Added base analysis functions.
Added average demand.
Switch to relfreq.
Added risk model, revised demand probability.
Added stat significance test.
Analysis package, bugfixes.