add magic to dom handler
clean doc
release 0.3.1