Adds warning styles and check for empty file to index file.