Adding methods and comments to QueryBuilder class