minor tweaks and code clean-up
refactored _Reader and _Writer
added filter.py module
code clean-up
added example to tutorial.md