Improved the logviewer

also started an xml generator to create the fields xml definition since
I need to make changes to the field class structure and don't wish to go
through every single class.