Added missing JavaDoc.
Added a simple query builder method.
Removed unused getProtocolVersion ()