Mainly made the tag adding case insensitive: if it already exists, it modifies and uses the already existing name.