Fixing some bugs and adding splash screen.