Fixed a bug where not all logging levels were printed to correct stream. Added schema for XML validation. Added schema.