Add type testing for diffs and fix documentation