Added documentation for "upload" function.