add some documantation to visualization.js