Changed xsl:message statements to only display if in debug mode
Added debug flags to java application