Added check for dupe ids that occur (merge and commit), fixed debug and gitignore