Support to fields and exclude in serialization

Added stuff related to #86.

Added documentation as well.