http://pastebin.com/RLGPMMj4
You need to put coal in the first slot (you dont need to refuel, it does that automatically) some Cobblestone in the second slot and some torches in the third one.
You will also need to place a chest at headlevel (behind the turtle) (one block above the turtle).
After you start the program you need to type a lenght for the sidetunnels.
Then you will be good to go. ;D