Complete PomdpXWriter Class with tests

I had to create a fresh branch with a single commit as the branch which I was working on messed up.
Why are these comments here? Also leave a space after `#` (looks better)