adding magit and dependencies