Fix small bugs

Signed-off-by: Eduardo L. Buratti <elb09@c3sl.ufpr.br>
Add posting avg_fitness

Signed-off-by: Eduardo L. Buratti <elb09@c3sl.ufpr.br>