adding doc dir to .gitignore
documenting term_buffer.js
hide private APIs in docs; make reporter configurable