Added zip and writer output classes. gui doesn't update after every new line, fixed bugs.
Merging refactor branch into master branch

mmit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.