Refactoring

- Replace fields and container with source and target
- Add tests for the new variables
minor doc adjustment
Merge pull request #383 from electrical/kv_filter

Kv filter