Makes the code more explicit for the modifier of serializer.

Instead of receiving an array named 'data', explicitely name the variables
'content' and 'options', to make it clear what we need to pass to the hook.
Some documentation fixes for the serializer's hooks.