extract rates_api from sim_rates
minor changes
refactor rates_sim and add rates_from_csv
update