Added match functionality to PopulationParser,

fixed some minor things..