minor newline fix, changed to blanket error pipes
fixed couple of bad indentation