validated some xml. added logging functionality (console only)
added logging