Document upload and improvements