added attributes map creation in Tag object constructor so I could add a getAttribute(key) method
Cleaning up code yeah!