Fixed some errors loading and replaced vector in POPGalaxy with array: