Refactored zfilter outside of visualization function, updated variable names, added explanatory comments.
Merge branch 'shakebattle-refactor'