Changed code comment style to multi-line commenting and  refined JSDoc params. Removed unused traverseShift(). Code cleanup.