add and document the .toArray() method
Merge pull request #7 from deoxxa/add-toarray

add and document the .toArray() method