read .stdat one pop tested and corrected
added SDs for probabilities
fixed minor bugs when num.pops=1 and completed num.pops>1