Refactor

I refactored the class to put everything in alpha order to make it easier to find. Then I made the Log and XDocument public