implemented branch removal. added eventemitter for sync notification.