1. fixed bugs with splash screen and terrain texture not being displayed
2. minor code cleanup