set up structure of phappy, started making pipes
added thappy.c, threaded version