Improved readability of dump-outs a bit
Added logging to logfile. Fixed up some fields that should've been private.