XML Cost and Organazation

Forgot to add the cost so I added it and organized somewhat while  I was
at it.