Added splash screen, refactored code.