Rewrote zip directory function.

* Trying to remove copyright concern.
Merge pull request #18 from brownhead/brownhead/zip-redo

Rewrote zip directory function.