Add comments to methods and set total_animal array