generate method docs