refactored + commented PowerMeter.cs