Moving the xml parsing outside of the library
Fix white spaces identation errors
Removed the stdout printing from lib result returned in a struct