Added file i/o for non piped commands. Pipelining and signal handling is still todo