Population file and extra functioins file. More functions are now functionized