refactoring the diff into a module, and adding the show yaml parser