MPD.java: First round of warning fixes.

These include performance warnings, javadoc warnings, and a few return
eliminations.
MPD.java: Reformat
MPD.java: Fix code style warnings.
MPD.java: Added logs, fixed more warnings.