added examples; fixed minor problems - mainly lack of sqrt in the integer vers, thus preventing stdDev