Added function to load planet data from files.