domType option added, docs updated