Create buildDiff function
Add in methods for retrieving updates and doc version