implemented NameMap for tag, attributes and attribute values data
implemented errors and changed names
implemented main methods in Tag class, solved som bugs