You want to know how they work? For starters, I suggest you download the HDK from mindstorms.com. Here is a direct download link
. Note however, the HDK is from 2006, so it's not complete (it was released well before the lego color sensor was available). There is still a ton of good info in it.
I'm all for gun control... that's why I use both hands when shooting