Elon Musk, CEO of Tesla and SpaceX, has accused OpenAI CEO Sam Altman of having diverted a non-profit foundation they created together in 2015. On Wednesday, he faced his own emails and predictions from the time in court.