Add nXML pretty print function.
Fix sh-mode and java-mode settings.