added methods to add/remove entries from the git index

As title says. I'm not sure, if more is needed currently.