extract godiff lib
refactoring
first working version (still wip)