UPdated phpdoc and removed test print. #1310
Correct counts when searching. #1310