added documentation and sample #18
support for arrays #18