doctype check

added setProperties method