Revert "xml"

This reverts commit 3c3c09972dc93bc235483f9268196e996d87c416.
Global fitting functioning and minimising functions
xml