Sample fixes

updated some samples, to add the closing tag, for eg., there were opening<b> tags but not closing</b>tag.
removed printStacktrace and corrected heading for some samples