minor jslint fixes
more comments to prevent people from misunderstanding the purpose of protocol.js
whitespace
updated examples