Adding some control functions to the Makefile, removing some includes from main.c
Adding preprocessor.h, and using a unistd.h define for fileno's