Merged with zip-version from the website
Fixed problem with toarray having 0 entries (?)
Fixed problem with $touserarray