Fixed some docblocks.
Removed an unused variable.
Now also checking for unknown classes that are serialized.