reformat tips to .R, minor fixes to diablo api