worked out a lot of minor issues causing compiler errors

I'm attempting to test the reader, but to do that I need a bunch of
stuff to compile first, so while I still have some compiler errors I did
iron a bunch out