Added the script that wrote the Power_History.txt files