recording music

I started turning my poems into songs and dusted of my old acoustic guitar. I think they sound okay, but when I try to record them onto a computer there is so much static and unwanted noise. A mic is needed. But which one? Acoustic guitar with vocals is what I am trying to record.

Any musos out there who could over a few tips on what to get?