Add callback functions when tags are added/removed

Will add tests soon. Fix #2