several small problems resolved
search function corrected