Fix typo on function name
More logic concatenation logic
Change population argument name
Move code to create first generation to a function