Registered classes with kryo serializer.

Registering the classes made the files smaller and garnered slightly better performance.