filters.py: Added ability to send custom normalization. Also made demo('optimization') example work better