Added text size calculating function, modified splash screen