Added ZIP validation, other fixes

Finished groundwork for the next parts. Basic testing is now possible.