add comments, keep track of hostbuf pointer to raise error when trying to unmap an array not tied to a particular buffer
fix errors with initializing buffers with hostptr, add test