Added addMeasurement() method in XDR and tests, refined javadocs.