There's no program out there that can correct that much blurriness in a photo. The photo editors just don't have enough 'in focus' data* to work with to make the image sharper. If you have Photoshop you can try the Unmask Sharpen filter. Play with the settings there a bit. But, honestly, you're not going to see very good results.
If you're going to try the telescope thing again, set the camera in 'close-up' mode. Usually a button or icon of a flower. I believe this will solve your problem because what the camera is focusing on is very close (the lens piece). Correct me on any details.
*Best Lehman's term I could come up with.