documentation
fixed bug in cursor2array helper function