completed distribution code and started added filters

This completes the move of the send to client code and adds local save
code