Implemented Population class, improved/adapted the other classes.