fixed power output
fixed the power consumption calculation and added comments to the helpers