support decode and encode int
add license to package.json fixed #19