Refactoring, added a pipes directory and integrating with grader pipes