Changed Diff.py
Reverted HEAD because of false of gitignore
Changed way of check() in Diff.py for functional