Preallocations in MemoryStreams. Fast bitpacking. Documentation added. Misc other minor changes.