removed innerHTML usage and corrected some html docs. also deleted some

removed innerHTML usage and corrected some html docs. also deleted some duplicate samples