Additional documentation; diffing function