update document
fixed binary file upload
refactoring