ready to include memory in positions
done inserting qpspecial into the code.  I just don't know exactly from where to call it yet
also done with sed statements that I needed