Added check if a commit is nessessary and a check if tag already exists.