Added a splash screen and made some code cleanups