Corrected some things on stats plugin, also added config support.