Adding getTags code. Fixed an error that was preventing changes from persisting