Updates to documentation and improvements to bpch

bpch updates are mainly convenience and memory management