Added splash screen and updated code