Update refresh docs and add C example