added additional methods from pb to HashOctree

Also some minor typos
First try at D0, added some tests

also some additional methods for easier testing