lots of formatting changes, with outline of S/N calculation
(#12)