All i know is, that those things are small and hurt like hell when you poke yourself with the pointy ends.
That, and that they act as amplifiers by using a npn or pnp layer when current passes from collecter to emitter. and the base is the middle one, which makes it do something somehow. And...