some refactoring
more pipes
bug and readme