toArray methods.
Fixed packing directory cleanign and creation.
Merge branch 'origin/master'