updating the script generator - creation of materials, slabs and stack are all separated clearly now