[FIX] refactored and fixed Tupler pipe, added comprehensive tests, ...

... coding style partially adapted