DOC: fix error inastats. maxwell docstring and typo in stats.erlang docstring.

Closes gh-2541.