add first function for return modified files
add rebase function, not full tested.
add branch handling.