implement pipeline
modifying bad file descriptor
fix sleep signal
fix bug, come to test case
Merge pull request #2 from kklt92/devN

Finish most of the function.