update gradle plugin ver and buildToolsVersion.
fix #14 bug.
add volatile to long variables.
update README and update library version.