numpy array as input bug fixed for python 3.x
documentation update