how do you get fire to not burn out?
Surround a flammable block with non-flammables.
Now check if there is qwood within a 5 block radius.
No?
Then light the block in the middle on fire.
Now you can optionally remove the non-burnable blocks.
Voila infinite fire.