Fix xss vulnerability, fix EntityMalformedException, update README.txt for how to use section, cleanup