Did some optimizations in the memory area. This results in slightly
larger time in running the creations. I was told using "for item in $(
cat "$file" ); do was not good practice. I read some articles that
described a memory bog that I did not want in my code. Instead it uses a
while loop to read the file.