Fixed internals, more docs, implemented chunking