Clean up stats/data.py
Add stats/tests/test_data.py
Add stats.data to docs and fix some docstring typos.