Added sky dome, some code reorganization, cleanup and tweaks