Got SpriteDemo to work; refactored newline cleanup.