1- Comments added.
2- Handled the code to publlish any type of contents such as xml,xhtml,text and binary