Camera and quaternions

Hi!

I would like to find a code sample showing how to create a Camera using quaternions. I have found some but they are not very well commented, can somebody please help?

Thanks!