Fixed some minor whitespace issues and a typo.
Added logarithm and tests.
Added variance + tests.
Fixed a warning in teste for log
Added example to variance docstring.