Condensed several funcions

modified read_data(), merged find_*()
Merge pull request #1 from roboxue/master

dynamic pricing update