Hmm, you probably shouldnt double post for the same problem cause it clutters the forums and you might get a mod giving you a noob slap if you do it to often.
Anyway, as _Pauli_ said, the best place to look at collision is in the examples that come with Sparky's if thats what you are going to use.
Although I suggest actually learning how the code works, as having other people type it out for you isnt going to teach you anything, the way I tend to figure out new code that isnt mine is by trial and error, What I mean is, change a couple of variables and have a look at the effect it has, increase them, decrease them, remove them altogether, then move on and do the same for other parts of the code. That way you will be able to see what is happening where and what parts of the code affect what...
Usually, you will end up breaking it quite a few times as you change things, but thats ok, as long as you can figure out why the change caused it to break, its still teaching you something..
Once piece of advice though is to work small, only change variable's values one at a time to start with, perhaps make them constant or keep their value at zero or something so you can see where they are being changed in the code(you cant change a contant so it will give you an error at that point in the code, and you should notice soemthing different between running it with normal values and whatever you changed to 0)
Anway, hope thats something to think about, good luck
If it ain't broke.... DONT FIX IT !!!