added pop_gen script
added pop_gen script