Condensed several funcions

modified read_data(), merged find_*()