Added documentation.
Added documentation and data parameter to search() method.