ready to send to Mathangi
Finished code for power curves and associated output