MNT: Documented search and added type checking to input parameters