changing showstats to stats, enhancing some docstrings