update useCode docs