Fix code indentation in examples
Implement compare
Review diff implementation