added better comments to InsertSprite, RetrieveSprite, and GenerateSprite.