add documentation to stats controller