Tidied up stats page and saving stats