Made min()/max() method returns int, not string values
Improved phpdoc of Query class