Fixed bugs in other analysis scripts, added a per locus popsampled script