You're missing a lot of commas, before nearly every "},".
The correct syntax for border size is "border_size = 5," (without quotes around the value). Same for border_alpha.
As for the script itself, I'm not that knowledgeable, so can't help you there