Almost finished with stats, most things match, code needs documentation