added getClientInfo code, bugfixes
added xml template
added explanations