added output directory, outsourced IO tests to separate file
outsourced populationt tests to separate file