added toArray to README