upload: use arithmethic average and add type
pass API key as parameter (-a)
upload: use modulo for upload time