removed a unused function from protocolviewer.js
renamed some of the functions