Add support for pipes

Added support for pipes by accepting no input or a dash as stdin