refine
verb [ T ]
uk/rɪˈfaɪn/ us PRODUCTION
to improve something or to make it pure, especially by removing material that is not wanted:
Crude oil is industrially refined to purify it.
to improve an idea, a method, a system, etc. by making small changes:
Engineers spent many months refining the software.