Added register and update for components. Also fixed some structures and removed some useless variables on git_utils.