Improve maps documentation
Add documentation for functions.js
Update dom.js documentation and refactor traversal functions into traversing.js