Optimizations + function feature

- Separation of the filter parsing
- parses now the functions