Fix resource files and main start loop