Work making profile plot code, saved index files and start of Redfield code