add examples. Update class to fix problem when there is javascript code in the html document. Add new methods. (Documentation is incomplete)