I tried to change all the pointer arrays to allocatable - so far no good. Segfaults. Figure out why.