This is my best miner so far, i am working on one that will just do everything, so here is the code and pastebin :
http://pastebin.com/NTp0pGwY

print("Mining")
cond = 1
while cond ~= 50 do
turtle.dig()
turtle.digDown()
turtle.digUp()
turtle.forward()
cond = cond + 1
end
if cond == 50 then
turtle.turnLeft()
turtle.turnLeft()
while cond ~= 100 do
cond = cond + 1
turtle.forward()
end
end
print("Finished!")
print("Created By Samh111! Thank You For Using My Miner!")