Adding population script, fixing error in models