I can send you some links if you read Japanese.
I went a few years ago, but I drove my car at the time. However I do know that you can use JR to get there, although it involves a bus from the station, as there is no train station in Shirakawa-go itself.
It's definately worth visiting, so you might want to go there on the way to Kyoto.