added the close system call
added a file for local test wrappers to source for creating a tmp directory.
added rule for cleaning out tmp files