Added full test coverage, updated README, added population statistical functions