Completed JSDoc commets for rotor.js and fixed unit test for enigma machine.