Added upload to tracking function. Not yet working as I always get a 401 Unauthorized. And small fixes