Fixed the sprite populate buffer flow, commented a few things and reduced visibility according to inspection