adding tag.sh shell script
cleaning up some of the messiest classes