Added exception handling for tags and reorganized imports
Added tag metadata exceptions
Updated tests and added more exception handling