Added comments to the classes working with tags