Tidied up stats graph page and finished stats generation.