Refactor more functions into traversing.js and add missing documentation
Update sandbox