Documents reveal Tesla is spending nearly $1 billion on its updated Gigafactory