Optimized resource creation and some clean ups

- Removed DLG and MUS creation
- Removed redundant conditions
- Changed tabs into spaces for a number of files