added new library for document upload and added some settings
add document function and fast upload function