update README
check if thread is interrupted.
update javadoc.