minor changes of handler
add device param to handler
fix #43
update readme for handler