Add option to disable file output

Now if we don't specify an output file we don't write any output
Add some more classes to kryo registration