Added ToXML function for ShipFits

Also minimally changed some code to allow the solution to compile and added some documentation.

Hoping to use this ToXML function for Ship Editing.