Clearly, intermittent voltage to ANY electronic engine will cause a number of codes/symptoms. So, I agree, start by verifying 12+ VDC to the engine computer AND a good tight ground (there is usually a ground wire from just below the ECM on the engine to good chassis ground.
As far as performance issues, ALWAYS the first thing to do is replace the fuel filters. They are inexpensive and a clogged filter will materially limit power. This is most noticeable at higher RPM, as more fuel is being demanded. Clogged filters/reduced fuel flow is also hard on injection components, as the diesel is used to cool and lubricate them. Could it be other thing-- sure, but start with one that is relatively inexpensive and one that DOES cause issues in many coaches-- particularly those that have sat for awhile.
You don't mention much about your rig-- how many miles are on it? Have the valves ever been adjusted. If you are not the original owner, I would call Caterpillar Corp with your engine serial number. If a Caterpillar dealer has done work on it, Caterpillar Corp can pull up that information for you: 877 777 -3126.