Add piping to read the errors and output

fixes #12