Added NumSamples property.
Added sum method.
Added __str__.