adding a new method to change xml to dictionary and fixing some attribute names