updated some comments;
tested pipe successfully;