Log changes
updatd haschanges
added changes function to show diffs