made text scale with buffer size and added an FPS counter