Update documentation to reflect new factory class.
Improve API documentation.
Fix bug when validating the pixelate function.