Through fiscal discipline and sound management , Botswana transformed itself from one of the poorest countries in the world to a middle-income country with a per capita GDP of $ 13,100 in 2010 .