interaction: Better document and update code to modern style.