update EncodingInterface docblock
improved is_immutable check in factory
Update documentation