fixed possible zipping error, cleaned code

1. added missing 'wait' command for creating zip within a background
process. it will now wait to finish before continuing script
2. removed all unnecessary '&&' wait calls
3. etc etc