Boiler for wood and pellets