Added bin/mergit

* Fixed case of passing in a string.
* Fixed infinite loop case.