Fixing bugs and adding toString function to Tag entity