Added documentation and fixed a small bug in the jms serializer impl.