refine code documents