refactored renderer. docs. examples for array 2d and input