Working main function to evolve PN system and output dat file