Improved stats loading & added some comments