Quake 2 BSP file format

Is there anyone out there who can tell me where can i find analytical specifications on Q2 bsp file format.Or even better some source code for loading them.

thanks a lot.
HellRaiZ.

There is a description of some of the format here : http://www.flipcode.com/tutorials/tut_q2levels.shtml