Merge pull request #11 from yifan-gu/master

check timeout for upload
readme and doc
add some readme, fix a vulerability in decoding, more tests needed