Added Powermonitor to main.cpp