finished hmm read/write, working on topo.c