Added ignore whitespace support when generating diffs

Also included tests